package org.hawk.gwt.ppc.parser;

/**
 * Reflects for-each java loop.
 *  
 * @author alex.bereznevatiy@gmail.com
 *
 */
public interface ForeachExpressionDescriptor extends ExpressionDescriptor, LabeledBlockDescriptor {
	
	/**
	 * @return descriptor for the variable declaration of for-each loop.
	 */
	ExpressionDescriptor getVariable();
	
	/**
	 * @return collection expression descriptor
	 */
	ExpressionDescriptor getCollection();
	
	/**
	 * @return expression to be executed for each collection element.
	 */
	ExpressionDescriptor getExpression();
}
